package org.patto.main.api.impl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author songchuanfu
 * @ClassName SysUserLoginLog
 * @qq 1802284273
 * @addres 1802284273@qq.com
 * @微信: wx-suagcf
 */

@TableName("sys_user_login_log")
@ApiModel(value = "SysUserLoginLog对象", description = "")
@Data
public class SysUserLoginLog {

    private static final long serialVersionUID = 1L;

    /**加上无参构造方法
     *
     */
    public SysUserLoginLog(){

    }
    /**
     * mybatis 注入参数时根据 有参构造方法注入参数
     * @param userId
     * @param loginIp
     * @param loginTime
     * @param loginToken
     * @param channel
     * @param equipment
     */
    public SysUserLoginLog(Integer userId, String loginIp, Date loginTime, String loginToken, String channel, String equipment) {
        this.userId = userId;
        this.loginIp = loginIp;
        this.loginTime = loginTime;
        this.loginToken = loginToken;
        this.channel = channel;
        this.equipment = equipment;
    }

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private String loginIp;

    private Date loginTime;

    private String loginToken;

    @ApiModelProperty("渠道")
    private String channel;

    @ApiModelProperty("设备信息")
    private String equipment;

    private Integer isDelete;
}
